package one_class_design.six_work;

/**
 * @author 北巷_东坡
 * @date 2022/9/18 18:15
 * @computer 10741
 */
public class run_six {
    public static void main(String[] args) {
        WeatherState duoyun=new CloudyState();
        WeatherState shaoyun=new CloudylittleState();
        WeatherState dayun=new HeavyRainState();
        WeatherState xiaoyu=new LightRainState();
        Weather weather = new Weather();
        weather.setState(duoyun);
        System.out.print("今天白天:");
        weather.show();
        System.out.println(",有时阴");
        System.out.print("今天夜间:");
        weather.setState(xiaoyu);
        weather.show();
        System.out.print("转");
        weather.setState(dayun);
        weather.show();
//        System.out.println("");
        System.out.print("\n明天白天:");
        weather.setState(xiaoyu);
        weather.show();
        System.out.print("\n明天夜间:");
        weather.setState(shaoyun);
        weather.show();
        System.out.println(",有时晴");
    }
}
